<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
   
    <ui:composition template="/views/_template.xhtml">
        <ui:define name="corpo">
            <div >
                <h4>
                    <h:outputLabel style="text-align: right; margin-left: 720px; color: #99a699;" value="Total de registro: #{bancoBean.contRegistro}" />
                </h4>
                <h:outputLabel value="Consulta dos fornecedores cadastrados" style="border-bottom: 3px solid #C22; text-align: left; font-size: 18px; width: 900px; margin-bottom: 15px;" />    
            </div>
                <h:form >
                    <h:panelGrid style="border: 1px solid #999999;  background-color: #E4E4E4; width: 900px;">
                        <h:column>
                        <h:outputLabel value="Tipo de pessoa:" for="pessoa" />
                        <p:selectOneMenu value="#{fornecedorBean.tipoPessoa}" immediate="true">
                                <f:selectItem itemLabel="Selecione um tipo de pessoa" itemValue="" />
                                <f:selectItem itemLabel="Pessoa Júridica" itemValue="JURIDICA" />
                                <f:selectItem itemLabel="Pessoa Fisica" itemValue="FISICA" />
                            </p:selectOneMenu>
                        </h:column>
                        <h:column>
                            <h:commandButton value="OK" action="#{fornecedorBean.tipoPessoaChanged()}" />
                        </h:column>
                    </h:panelGrid>
                </h:form>
        </ui:define>
    </ui:composition>
</html>

